<!DOCTYPE html>
<html ng-app>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="../angular/angular.js"></script>
<title>Insert title here</title>
</head>
<body>
	<div ng-controller="MyController" >
		<input ng-model="person.name" type="text" placeholder="Your name"  />
		<h1>Hello {{ person.name }}</h1>  
		<h1>time {{ clock.now }}</h1>  
	</div>
	<script type="text/javascript" src="001.js"></script>
	<script type="text/javascript">
	/**
	function MyController(){
		var updateClock = function($scope,$timeout){
			$scope.clock = new Date();
			$timeout(function(){
				updateClock();
			},1000);
		};
		updateClock();
	};
	
	function MyController($scope) {
        $scope.clock = new Date();
        var updateClock = function() {
          $scope.clock = new Date();
        };
        setInterval(function() {
          $scope.$apply(updateClock);
        }, 1000);
        updateClock();
      };
      */
	</script>
</body>
</html>